package com.sh.controller;

import sh.entity.Auth;
import com.sh.service.AuthService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 权限表(Auth)表控制层
 *
 * @author makejava
 * @since 2021-05-10 15:43:05
 */
@RestController
@RequestMapping("auth")
public class AuthController {
    /**
     * 服务对象
     */
    @Resource
    private AuthService authService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Auth selectOne(Integer id) {
        return this.authService.queryById(id);
    }

}
